<template>
	<view class="u-p-l-20 u-p-r-20">
		<view class="u-border-top">
			<u-form :model="form" label-width='auto'>
				<u-form-item left-icon='bag' label="订单编号" prop="name">
					<view class="u-tips-color u-font-26" slot="right">
						{{form.orderSn}}
					</view>
				</u-form-item>
				<u-form-item left-icon='rmb' label="应付金额" prop="intro">
					<view class="u-tips-color u-font-26" slot="right">
						￥{{form.totalPrice | getPrice}}
					</view>
				</u-form-item>
			</u-form>
			<view class="u-flex u-row-between u-p-20">
				<u-image width="200rpx" mode='widthFix' src="/static/weixinpay.png"></u-image>
				<radio checked="true" style="transform:scale(0.8)" />
			</view>
		</view>
		<u-button type="primary" @click="submit">立即支付</u-button>
	</view>
</template>

<script>
	import {
		startPay
	} from '@/api/shop.js'
	export default {
		data() {
			return {
				form: {
					orderSn: '',
					intro: '',
				},
			};
		},
		onLoad(e) {
			this.form={
				...e
			}
		},
		methods: {
			submit() {
				const query={
					JSESSIONID: uni.getStorageSync('sessionid'),
					orderSn:this.form.orderSn
				}
				startPay(query).then(res=>{
					
				})
			}
		},
	};
</script>
